:global(.ant-modal-wrap-rtl) {
  .un-replied-detail-start,
  .un-replied-detail-end {
    span {
      transform: scaleX(-1) !important;
    }
  }
}

.reply-modal {
  :global(.ant-modal-content) {
    padding: 0 !important;
  }

  .reply-header {
    padding: 18px 24px !important;
    border-bottom: 1px solid #dcdfe6 !important;
    margin-bottom: 0 !important;

    :global(.ant-modal-title) {
      color: #16202d;
      font-family: Roboto Condensed;
      font-size: 22px;
      font-style: normal;
      font-weight: 700;
    }
  }

  .reply-body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    :global(.ant-empty) {
      padding: 140px 0 0;

      :global(.ant-empty-image) {
        transform: scale(1.2);
      }
    }

    .reply-segmented {
      margin: 12px 0 20px;
      padding: 4px;

      :global(.ant-segmented-item) {
        padding: 2px 40px;
        color: #16202d;
        font-family: Roboto Condensed;
        font-style: normal;
        font-weight: 700;
        line-height: 150%; /* 18px */

        :global(.ant-segmented-item-label) {
          display: flex;
          align-items: center;
          gap: 5px;

          .segmented-title-num {
            display: block;
            padding: 3px 6px;
            margin-top: -2px;
            border-radius: 27px;
            background: #e93323;
            color: #fff;
            font-family: Roboto Condensed;
            font-size: 11px;
            font-weight: bold;
          }
        }
      }
    }

    /* un-replied */
    .un-replied {
      width: 100%;
      display: flex;
      justify-content: center;
      min-height: 550px;
      overflow: auto;

      .un-replied-left {
        width: 255px;
        display: flex;
        flex-direction: column;
        border-right: 1px solid #f2f4f8;

        .un-replied-left-list {
          // height: 520px;
          overflow: auto;
          display: flex;
          flex-direction: column;

          .un-replied-item {
            cursor: pointer;
            padding: 20px 24px 0;

            .un-replied-item-main {
              display: flex;
              align-items: center;
              padding-bottom: 16px;
              border-bottom: 1px solid #dcdfe6;
              gap: 12px;

              .un-replied-item-avatar {
                width: 39px;
                height: 39px;
              }

              .un-replied-item-content {
                display: flex;
                flex-direction: column;
                gap: 7px;
                width: calc(100% - 48px);

                .un-replied-item-title {
                  display: flex;
                  justify-content: space-between;
                  gap: 10px;

                  .un-replied-item-name {
                    color: #16202d;
                    font-family: Roboto Condensed;
                    font-size: 14px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                  }

                  .un-replied-item-date {
                    color: #9db2bf;
                    font-family: Avenir;
                    font-size: 13px;
                  }
                }

                .un-replied-item-description {
                  color: #464646;
                  font-family: Roboto;
                  font-size: 12px;
                  font-weight: normal;
                  width: 100%;
                  white-space: nowrap;
                  text-overflow: ellipsis;
                  overflow: hidden;
                }
              }
            }
          }

          .un-replied-item-active {
            background-color: #e7f2f9;
          }
        }
      }

      .un-replied-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 16px 24px;
        position: relative;
        padding-bottom: 50px;

        .un-replied-right-title {
          display: flex;
          align-items: center;
          justify-content: space-between;

          .un-replied-title-logo {
            display: flex;
            align-items: center;
            gap: 8px;

            .un-replied-title-avatar {
              width: 30px;
              height: 30px;
            }

            .un-replied-title-name {
              color: #16202d;
              font-family: Roboto Condensed;
              font-size: 15px;
            }
          }

          .un-replied-title-date {
            color: #9db2bf;
            font-family: Avenir;
            font-size: 14px;
            font-weight: 400;
          }
        }

        .un-replied-detail {
          display: flex;
          flex-direction: column;

          .un-replied-detail-text {
            color: #464646;
            font-family: Avenir;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: 23px;
            max-height: 140px;
            overflow: auto;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            word-break: break-word;
          }

          .un-replied-detail-start,
          .un-replied-detail-end {
            color: #464646;
            font-family: Roboto Condensed;
            font-size: 32px;
            font-weight: bold;
            display: flex;
          }

          .un-replied-detail-start {
            transform: translateY(13px);
          }

          .un-replied-detail-end {
            float: right;
            justify-content: flex-end;
            margin-top: 5px;
          }
        }

        .un-replied-textarea-label,
        .un-replied-attachments-label {
          color: #16202d;
          font-family: Roboto Condensed;
          font-size: 16px;
          font-weight: 700;
          margin-bottom: 15px;
          display: flex;
          align-items: center;

          .un-replied-attachments-alert-icon {
            cursor: pointer;
            width: 18px;
            height: 18px;
            margin: 0 8px;
          }
        }

        .un-replied-textarea {
          margin-bottom: 30px;
        }

        .un-replied-attachments {
          margin-bottom: 20px;

          .un-replied-attachments-add {
            color: #44c5e4;
            font-family: Tajawal;
            font-size: 14px;
            font-weight: 700;

            span {
              cursor: pointer;
            }
          }

          .un-replied-attachments-file {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin: 0 0 16px;

            .un-replied-attachments-file-item {
              direction: ltr;
              padding-right: 10px;
              gap: 12px;
              border-radius: 6px;
              background: rgba(214, 220, 224, 30%);
              display: flex;
              align-items: center;
              justify-content: space-between;

              .file-icon {
                width: 34px;
                height: 34px;
              }

              .file-text {
                line-height: 18px;
                height: 18px;
                color: #464646;
                font-family: Avenir;
                font-size: 12px;
                border-right: 1px solid #d6dce0;
                padding-right: 11px;
              }

              .file-close {
                cursor: pointer;
                width: 20px;
                height: 20px;
              }
            }
          }
        }

        .un-replied-right-footer {
          position: absolute;
          bottom: 20px;

          .un-replied-submit {
            display: flex;
            padding: 8px 24px;
            align-items: center;
            border-radius: 100px;
            background: #44c5e4;
            cursor: pointer;

            .un-replied-submit-text {
              color: #fff;
              font-family: Roboto Condensed;
              font-size: 15px;
            }
          }
        }
      }
    }

    /* replied */
    .replied {
      width: 100%;
      display: flex;
      justify-content: center;
      height: 550px;
      overflow: auto;

      .replied-list {
        padding: 0 24px 24px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;

        .replied-item {
          border: 1px solid #dcdfe6;
          border-radius: 0 0 4px 4px;

          .replied-header {
            height: 24px;
            border-radius: 4px 4px 0 0;
            border-bottom: 1px solid #dcdfe6;
            background: #e7f2f9;
          }

          .replied-main {
            padding: 24px 24px 0;

            .replied-comment {
              display: flex;
              flex-direction: column;

              .replied-comment-item {
                display: flex;
                flex-direction: column;
                gap: 16px;
                border-bottom: 2px dashed #d6dce0;
                padding-bottom: 20px;
                margin-bottom: 20px;

                .replied-comment-header {
                  display: flex;
                  align-items: center;
                  justify-content: space-between;

                  .comment-title {
                    color: #16202d;
                    font-family: Avenir;
                    font-size: 14px;
                    font-weight: 800;
                  }

                  .comment-time {
                    color: #86909c;
                    font-family: Avenir;
                    font-size: 12px;
                    font-weight: 400;
                  }
                }

                .comment-text {
                  color: #16202d;
                  font-family: Avenir;
                  font-size: 14px;
                  line-height: 20px;
                  white-space: pre-wrap;
                }
              }
            }

            .replied-file {
              display: flex;
              flex-wrap: wrap;
              gap: 16px;
              margin: 5px 0 0;

              .replied-file-item {
                direction: ltr;
                padding-right: 10px;
                gap: 12px;
                border-radius: 6px;
                background: rgba(214, 220, 224, 30%);
                display: flex;
                align-items: center;
                justify-content: space-between;

                .file-icon {
                  width: 34px;
                  height: 34px;
                }

                .file-text {
                  line-height: 18px;
                  height: 18px;
                  color: #464646;
                  font-family: Avenir;
                  font-size: 12px;
                  font-weight: normal;
                }
              }
            }
          }
        }
      }
    }
  }
}

.reply-wrapper {
  background-color: rgba(254, 253, 253, 60%) !important;
  box-shadow: 0 10px 70px 0 rgba(68, 197, 228, 20%) inset !important;
  backdrop-filter: blur(10px) !important;
}
